<template>
     <div>
        <h2>cart page</h2>
        <!-- 从cart页面去home页面 -->
        <button @click="goHome">gohome</button>
     </div>
</template>

<script>
export default {
   methods:{
    goHome(){
        //跳转
        this.$router.go(-2)
    }
   }
}
</script>

<style>

</style>